/*
** print_to_addr.c for  in /home/georgi_v/rendu/PSU_2013_my_printf
** 
** Made by georgi_v
** Login   <georgi_v@epitech.net>
** 
** Started on  Sun Nov 17 05:37:17 2013 georgi_v
** Last update Sun Nov 17 16:59:04 2013 georgi_v
*/

#include "my.h"

int	convert_to_addr(va_list list)
{
  unsigned long result;

  result = (long) va_arg(list, long);
  my_putstr("0x");
  return (convert_to_base_long(result, "0123456789abcdef") + 2);
}
